home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / FE1.ARJ / BMP.H < prev    next >
C/C++ Source or Header  |  1992-02-07  |  2KB  |  79 lines

  1. #include "fe.h"
  2.  
  3. #ifndef __BMP_H
  4. #define __BMP_H
  5.  
  6. class editmap : public win {
  7.  
  8.     public :
  9.         editmap ( int, int, char * ) ;
  10.         ~editmap () ;
  11.  
  12.         void edit_map () ;
  13.         void total_map () ;
  14.  
  15.         void expose() ;
  16.         void focus() ;
  17.         void destroy() ;
  18.  
  19.         void copymap ( char ** ) ;
  20.  
  21.     private :
  22.         static const char mode_s ;
  23.         static const char mode_x ;
  24.         static const char *mode_str ;
  25.  
  26.         void getmspos () ;
  27.         void finish_func () { pix[FG_X1] = pix[FG_X2] = -1 ; }
  28.         void translate () ;
  29.         void drawcell ( int, int, int ) ;
  30.         void redraw ( int, int, int, int ) ;
  31.         void floodfill() ;
  32.         void invert_box () ;
  33.         void draw_line () ;
  34.         void draw_pixel () ;
  35.         void draw_circle () ;
  36.         void draw_ellipse () ;
  37.         void draw_box () ;
  38.         void flip_x () ;
  39.         void flip_y () ;
  40.         void clear () ;
  41.         void copy () ;
  42.         void cut () ;
  43.         void paste () ;
  44.  
  45.         fg_color_t get_color () ;
  46.         int get_mode () ;
  47.         void set_mode () ;
  48.         void byebye () ;
  49.         void save () ;
  50.         void _redraw () ;
  51.         void _set_invert_box () ;
  52.         void _set_draw_pixel () ;
  53.         void _set_draw_line () ;
  54.         void _set_floodfill () ;
  55.         void _set_draw_circle () ;
  56.         void _set_draw_ellipse () ;
  57.         void _set_draw_box () ;
  58.         void _set_clear () ;
  59.         void _set_copy () ;
  60.         void _set_cut () ;
  61.         void _set_paste () ;
  62.         void _set_flip_x () ;
  63.         void _set_flip_y () ;
  64.         void set_funcname ( eventscript_t, char * ) ;
  65.         void delete_array ( char **, int ) ;
  66.         char **alloc_array ( int, int ) ;
  67.         void realloc_array ( char ***, int, int ) ;
  68.  
  69.         fg_box_t cellbox ;
  70.         char **bits, *mode, *func, *filename, **clipb ;
  71.         unsigned p_x, p_y ;
  72.         int w, h, p_status, clip_w, clip_h ;
  73.         fg_box_t editbox, dispbox, pix ;
  74.         eventscript_t draw_func ;
  75.         menu *mu ;
  76. } ;
  77.  
  78. #endif
  79.